package com.zhentao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 动态实体
 */
@Data
@TableName("dynamics")
public class Dynamic implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    @TableId(value = "dynamic_id", type = IdType.AUTO)
    private Integer dynamicId;
    
    private Integer userId;
    private String userNickname;
    private String content;
    private String mediaUrls;
    private Integer likeCount;
    private Integer commentCount;
    private Integer auditStatus;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}

